package com.adingxiong.cft.entity;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @ClassName Account
 * @Description TODO
 * @Author xiongchao
 * @Date 2021/1/18 13:49
 **/
@Data
@Document(indexName = "bank",type = "account",shards = 5,replicas = 1)
public class Account {
    @Field(type = FieldType.Keyword)
    private Integer accountNumber;
    @Field(type = FieldType.Keyword)
    private Integer balance;
    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String firstname;
    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String lastName;
    @Field(type = FieldType.Keyword)
    private Integer age ;
    @Field(type = FieldType.Keyword)
    private String gender;
    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String address;
    @Field(type = FieldType.Keyword)
    private String email;
    @Field(type = FieldType.Keyword)
    private String state;
}
